package com.cosmoplat.xikai.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@ApiModel(value = "设备使用情况记录表", description = "用于表示系统中的设备使用情况记录表")
@Data
public class DeviceUsage {
    @TableId(value = "id", type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    @ApiModelProperty(value = "设备编号", example = "EW000008")
    private String deviceCode;
    @ApiModelProperty(value = "工作日期", example = "2025-01-0")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date dateOfWork;
    @ApiModelProperty(value = "设备开机时长", example = "6")
    private Integer deviceBootHours;
    @ApiModelProperty(value = "设备工作时长", example = "6")
    private Integer deviceWorkingHours;
    @ApiModelProperty(value = "设备状态", example = "0:离线 1:运行 2:待机 3:故障")
    private String deviceStatus;
    @ApiModelProperty(value = "故障代码", example = "DV256")
    private String faultCode;
    @ApiModelProperty(value = "故障名称", example = "风机报警")
    private String faultName;
    @ApiModelProperty(value = "故障描述", example = "没加油")
    private String faultDescription;

}
